package com.lk.cofig;

import org.springframework.context.annotation.Configuration;

/**
 * @author : com.com.lk
 * @date 2021/11/20 20:25
 **/
@Configuration
public class RedisConfig {

//    @Bean
//    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
//        RedisTemplate<String, Object> template = new RedisTemplate<>();
//        template.setHashKeySerializer(RedisSerializer.string());
//        template.setHashValueSerializer(RedisSerializer.json());
//        template.setKeySerializer(RedisSerializer.string());
//        template.setConnectionFactory(redisConnectionFactory);
//        return template;
//    }
}
